<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="AutoShiftMaster, App_Web_uxrncow4" %>

<%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="AjaxControlToolkit" %>
    <%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
           .textbox
        {}
        .btnRt003366
        {}
        </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[




        function numberOnlyExample() {
            if ((event.keyCode < 48) || (event.keyCode > 57))
                return false;
        }

        

// ]]>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
   
   
        
   <br />
   <br />
   <br />
   
   
   
        
         <div class="row">
        <div class="col-lg-12">
                        <div class="panel panel-primary">
      
                              <div class="panel-heading">
                                <h3 class="panel-title"><i class="fa fa-edit fa-fw"></i><asp:Label ID="lblAutoShift" runat="server" Text=" Auto Shift"></asp:Label>   </h3>
                            </div>
                               <div class="panel-body" style="height:auto;">

                           
                       

                                 <div class="col-lg-12 col-lg-12 col-md-12 col-sm-12 col-sm-12" style="margin-top: 15px;">
                            <ol class="breadcrumb">
                                <li>
                                    <asp:CheckBox ID="ChkAutoshift" runat="server" OnCheckedChanged="ChkAutoshift_CheckedChanged"
                                        TabIndex="16" AutoPostBack="True" />
                                    <b><asp:Label ID="lblisautoshift" runat="server" Text=" Is Auto Shift"></asp:Label> </b></li>
                            </ol>
                        </div>
                      
                        <div class="col-lg-13 col-md-12 col-sm-12">
                            <div class="col-lg-12 col-md-12 col-sm-12" style="height: 100px; overflow-y: scroll;
                                border: 1px solid #ddd;">
                               <asp:Label ID="lblSelectShiftforAutoShift" runat="server" Text="Select Shift for Auto Shift"></asp:Label>
                                <asp:CheckBoxList ID="ChkAutoshift1" type="checkbox" runat="server" Font-Bold="False"
                                    Font-Size="8pt">
                                </asp:CheckBoxList>
                            </div>
                        </div>


                          






							       <br />
                                   <br />


                                   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   
    <ContentTemplate>


							  <div class="col-md-12">
                                <div class="col-md-2" style="height: 250px; overflow-y: scroll; border: 1px solid #ddd;">
                                    <asp:RadioButton ID="SelectAllCommany" runat="server" Checked="True" GroupName="Cmpny"
                                        Text="" AutoPostBack="True" OnCheckedChanged="SelectAllCommany_CheckedChanged" /><asp:Label
                                            ID="lblAllCompany" runat="server" Text="All Company"></asp:Label><br />
                                    <asp:RadioButton ID="FewCompany" runat="server" GroupName="Cmpny" Text="" OnCheckedChanged="FewCompany_CheckedChanged" /><asp:Label
                                        ID="lblFewCompany" runat="server" Text="Few Company"></asp:Label><br />
                                    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"
                                        Text="" /><asp:Label ID="lblcompanySelectAllDeSelectAll" runat="server" Text="SelectAll/De-Select All"></asp:Label>
                                    <asp:CheckBoxList ID="chkcompanylist" runat="server" AutoPostBack="True" Font-Size="12px"
                                        OnSelectedIndexChanged="chkcompanylist_SelectedIndexChanged">
                                    </asp:CheckBoxList>
                                </div>
                                <div class="col-md-2" style="height: 250px; overflow-y: scroll; border: 1px solid #ddd;">
                                    <asp:RadioButton ID="Allshift" runat="server" GroupName="shift1" Text="" Checked="True"
                                        AutoPostBack="True" OnCheckedChanged="Allshift_CheckedChanged" /><asp:Label ID="lblAllBranch"
                                            runat="server" Text="All  Branch"></asp:Label><br />
                                    <asp:RadioButton ID="Allshift1" runat="server" GroupName="shift1" Text="" AutoPostBack="True"
                                        OnCheckedChanged="Allshift1_CheckedChanged" /><asp:Label ID="lblFewBranch" runat="server"
                                            Text="Few Branch"></asp:Label><br />
                                    <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged"
                                        Text="" /><asp:Label ID="lblbranchSelectAllDeSelectAll" runat="server" Text="SelectAll/De-Select All"></asp:Label>
                                    <asp:CheckBoxList ID="Chkshiftlist" runat="server" AutoPostBack="True" Font-Size="12px"
                                        OnSelectedIndexChanged="Chkshiftlist_SelectedIndexChanged">
                                    </asp:CheckBoxList>
                                    <br />
                                </div>
                                <div class="col-md-2" style="height: 250px; overflow-y: scroll; border: 1px solid #ddd;">
                                    <asp:RadioButton ID="AllDesignation" runat="server" Checked="True" GroupName="Dept"
                                        Text="" OnCheckedChanged="AllDesignation_CheckedChanged" /><asp:Label ID="lblAllDepartment"
                                            runat="server" Text="All Department"></asp:Label><br />
                                    <asp:RadioButton ID="optfewDesignation" runat="server" GroupName="Dept" Text="" OnCheckedChanged="optfewdept_CheckedChanged" /><asp:Label
                                        ID="lblFewDepartment" runat="server" Text="Few Department"></asp:Label><br />
                                    <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox3_CheckedChanged"
                                        Text="" /><asp:Label ID="lbldeptSelectAllDeSelectAll" runat="server" Text="SelectAll/De-Select All"></asp:Label>
                                    <asp:CheckBoxList ID="chkdepartmentlist" runat="server" AutoPostBack="True" Font-Size="12px"
                                        OnSelectedIndexChanged="chkdepartmentlist_SelectedIndexChanged">
                                    </asp:CheckBoxList>
                                </div>
                                <div class="col-md-2" style="height: 250px; overflow-y: scroll; border: 1px solid #ddd;">
                                    <asp:RadioButton ID="RadioButton1" runat="server" Checked="True" GroupName="Desig"
                                        Text="" OnCheckedChanged="RadioButton1_CheckedChanged" /><asp:Label ID="lblAllDesignation"
                                            runat="server" Text="All  Designation"></asp:Label><br />
                                    <asp:RadioButton ID="optFewEmployee0" runat="server" AutoPostBack="True" GroupName="Desig"
                                        OnCheckedChanged="optAllemployee_CheckedChanged" Text="" />
                                    <asp:Label ID="lblFewDesignation" runat="server" Text="Few Designation"></asp:Label><br />
                                    <asp:CheckBox ID="CheckBox4" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox4_CheckedChanged"
                                        Text="" /><asp:Label ID="lblDesignationSelectAllDeSelectAll" runat="server" Text="SelectAll/De-Select All"></asp:Label>
                                    <asp:CheckBoxList ID="ChkDesignationList" runat="server" AutoPostBack="True" Font-Size="12px"
                                        OnSelectedIndexChanged="ChkDesignationList_SelectedIndexChanged">
                                    </asp:CheckBoxList>
                                </div>
                                <div class="col-md-2" style="height: 250px; overflow-y: scroll; border: 1px solid #ddd;">
                                    <asp:RadioButton ID="optAllemployee" runat="server" AutoPostBack="True" Checked="True"
                                        GroupName="Emp" OnCheckedChanged="optAllemployee_CheckedChanged" Text="" ClientIDMode="Static"
                                        onclick="sharad();" /><asp:Label ID="lblAllemployee" runat="server" Text="All  employee"></asp:Label><br />
                                    <asp:RadioButton ID="optFewEmployee" runat="server" AutoPostBack="True" GroupName="Emp"
                                        Text="" OnCheckedChanged="optFewEmployee_CheckedChanged" ClientIDMode="Static"
                                        onclick="sharad();" /><asp:Label ID="lblFewEmployee" runat="server" Text="Few Employee"></asp:Label><br />
                                    <asp:CheckBox ID="CheckBox5" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox5_CheckedChanged"
                                        Text="" ClientIDMode="Static" onclick="sharad();" /><asp:Label ID="lblemployeeSelectAllDeSelectAll"
                                            runat="server" Text="SelectAll/De-Select All"></asp:Label>
                                    <asp:TextBox runat="server" ID="inputSearch" ClientIDMode="Static" Height="21px"
                                        placeholder="Search employee" />
                                    <asp:CheckBoxList ID="chkemployeelist" runat="server" OnSelectedIndexChanged="chkemployeelist_SelectedIndexChanged"
                                        Font-Size="12px" ClientIDMode="Static">
                                    </asp:CheckBoxList>
                                    <script type="text/javascript">
                                        window.onload = function () {
                                            var tmr = false;
                                            var labels = document.getElementById('chkemployeelist').getElementsByTagName('label');
                                            var func = function () {
                                                if (tmr)
                                                    clearTimeout(tmr);
                                                tmr = setTimeout(function () {
                                                    var regx = new RegExp(document.getElementById('inputSearch').value);


                                                    for (var i = 0, size = labels.length; i < size; i++)
                                                        if (document.getElementById('inputSearch').value.length > 0) {
                                                            if (labels[i].textContent.match(regx)) setItemVisibility(i, true);
                                                            else setItemVisibility(i, false);
                                                        }
                                                        else
                                                            setItemVisibility(i, true);
                                                }, 500);

                                                function setItemVisibility(position, visible) {
                                                    if (visible) {
                                                        labels[position].style.display = '';
                                                        labels[position].previousSibling.style.display = '';
                                                        if (labels[position].nextSibling != null)
                                                            labels[position].nextSibling.style.display = '';
                                                    }
                                                    else {
                                                        labels[position].style.display = 'none';
                                                        labels[position].previousSibling.style.display = 'none';
                                                        if (labels[position].nextSibling != null)
                                                            labels[position].nextSibling.style.display = 'none';

                                                    }
                                                }
                                            }

                                            if (document.attachEvent) document.getElementById('inputSearch').attachEvent('onkeypress', func);  // IE compatibility
                                            else document.getElementById('inputSearch').addEventListener('keydown', func, false); // other browsers
                                        };


                                        function sharad() {
                                            var tmr = false;

                                            var labels = document.getElementById('chkemployeelist').getElementsByTagName('label');
                                            var func = function () {
                                                if (tmr)
                                                    clearTimeout(tmr);
                                                tmr = setTimeout(function () {
                                                    var regx = new RegExp(document.getElementById('inputSearch').value);


                                                    for (var i = 0, size = labels.length; i < size; i++)
                                                        if (document.getElementById('inputSearch').value.length > 0) {
                                                            if (labels[i].textContent.match(regx)) setItemVisibility(i, true);
                                                            else setItemVisibility(i, false);
                                                        }
                                                        else
                                                            setItemVisibility(i, true);
                                                }, 500);

                                                function setItemVisibility(position, visible) {
                                                    if (visible) {
                                                        labels[position].style.display = '';
                                                        labels[position].previousSibling.style.display = '';
                                                        if (labels[position].nextSibling != null)
                                                            labels[position].nextSibling.style.display = '';
                                                    }
                                                    else {
                                                        labels[position].style.display = 'none';
                                                        labels[position].previousSibling.style.display = 'none';
                                                        if (labels[position].nextSibling != null)
                                                            labels[position].nextSibling.style.display = 'none';

                                                    }
                                                }
                                            }


                                            if (document.attachEvent) document.getElementById('inputSearch').attachEvent('onkeypress', func);  // IE compatibility
                                            else document.getElementById('inputSearch').addEventListener('keydown', func, false); // other browsers
                                        }



                                    </script>
                                </div>
                            </div>
                            

                  </ContentTemplate>

   </asp:UpdatePanel> 
                                      

       <br />
        <center>
							  <div class="col-lg-12"  style="margin-top:30px;">
							  <ol class="breadcrumb">
								
                                <asp:Button ID="cmdShowReport" runat="server" Text="Save"  OnClick="cmdShowReport_Click" onclientclick="return validate()"
        type="button" class="btn btn-success " /><i class="fa fa-plus;"></i>
        <asp:Button ID="btnClose" runat="server" type="button" Text="Close" onclick="btnClose_Click" 
           class="btn btn-danger"
           /><i  class="fa fa-trash-o;"></i>

							  </ol>
							  </div>
                              </center>
         
</div>
</div>
</div>


 </div>
       
            <%--<center style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000; height: 30px;" >
            
                <asp:Button ID="cmdShowReport" runat="server" CssClass="style26"  onclientclick="return validate()"
                    OnClick="cmdShowReport_Click" Text="Save" Width="90px" ForeColor="White" 
                    Height="27px" />
                <asp:Button ID="btnClose" runat="server" CssClass="style26" Text="Close" 
                    Width="90px" onclick="btnClose_Click" ForeColor="White" Height="29px" />
            
            </center>--%>



            

          
</asp:Content>


